package jm.java.bytecode;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/**
 * @Description 字节码——多情况catch
 * @date 2022/3/28 9:48
 */
public class ShowMultiTryCatch {
    public static void main(String[] args) {
        try {
            Method test = ShowMultiTryCatch.class.getMethod("test");
            test.invoke(null);
        } catch (NoSuchMethodException | IllegalAccessException |
                InvocationTargetException e) {
            e.printStackTrace();
        }
    }
    public static void test() {
        System.out.println("ok");
    }
}
